<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

<style>
    .a1{
width: 200px;
height: 150px;
margin: 20px auto;
    }
    .a1>div{
        border: green solid 1px;
        background-color: gold;
        height: 30px;
    margin-top: -1px;
    }
</style>


    
</body>
<div class="a1">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</html>